import request from '@/utils/request'

/**
 * 后台-获取宠物信息列表
 * @returns
 */
export const getPetList = ({ pagenum }) => {
  return request('/manage/petList', 'get', { pagenum })
}

/**
 * 后台-新增宠物
 * @param {*} param0
 * @returns
 */
export const insertPet = ({ name, sex, place, breed, blood, price, url, sort, features }) => {
  return request('/manage/insert/pet', 'post', { name, sex, place, breed, blood, price, url, sort, features })
}

export const delPet = ({ No }) => {
  return request('/manage/del/pet', 'delete', { No })
}

export const localPicture = (formdata) => {
  return request('/upload/img', 'post', formdata)
}
